.class public Lcom/waiqin365/lightapp/visit/VisitSearchActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;


# instance fields
.field private a:Ljava/util/ArrayList;

.field private b:Ljava/util/ArrayList;

.field private c:Landroid/widget/ListView;

.field private d:Lcom/waiqin365/lightapp/visit/b/bo;

.field private e:Landroid/content/Context;

.field private f:Lcom/waiqin365/lightapp/view/SearchView;

.field private g:Lcom/waiqin365/lightapp/view/NoNetView;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/visit/VisitSearchActivity;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->e:Landroid/content/Context;

    return-object v0
.end method

.method private a()V
    .locals 3

    const v0, 0x7f0c0c8a

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->c:Landroid/widget/ListView;

    const v0, 0x7f0c00cb

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/NoNetView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->g:Lcom/waiqin365/lightapp/view/NoNetView;

    const v0, 0x7f0c0131

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/SearchView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->f:Lcom/waiqin365/lightapp/view/SearchView;

    new-instance v0, Lcom/waiqin365/lightapp/visit/b/bo;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->e:Landroid/content/Context;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->b:Ljava/util/ArrayList;

    invoke-direct {v0, v1, v2}, Lcom/waiqin365/lightapp/visit/b/bo;-><init>(Landroid/content/Context;Ljava/util/ArrayList;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->d:Lcom/waiqin365/lightapp/visit/b/bo;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->d:Lcom/waiqin365/lightapp/visit/b/bo;

    new-instance v1, Lcom/waiqin365/lightapp/visit/hq;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/visit/hq;-><init>(Lcom/waiqin365/lightapp/visit/VisitSearchActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/visit/b/bo;->b(Lcom/waiqin365/lightapp/visit/b/bs;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->d:Lcom/waiqin365/lightapp/visit/b/bo;

    new-instance v1, Lcom/waiqin365/lightapp/visit/hr;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/visit/hr;-><init>(Lcom/waiqin365/lightapp/visit/VisitSearchActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/visit/b/bo;->c(Lcom/waiqin365/lightapp/visit/b/bs;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->d:Lcom/waiqin365/lightapp/visit/b/bo;

    new-instance v1, Lcom/waiqin365/lightapp/visit/hs;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/visit/hs;-><init>(Lcom/waiqin365/lightapp/visit/VisitSearchActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/visit/b/bo;->a(Lcom/waiqin365/lightapp/visit/b/bt;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->c:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->d:Lcom/waiqin365/lightapp/visit/b/bo;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->f:Lcom/waiqin365/lightapp/view/SearchView;

    new-instance v1, Lcom/waiqin365/lightapp/visit/ht;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/visit/ht;-><init>(Lcom/waiqin365/lightapp/visit/VisitSearchActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/SearchView;->setClearListener(Lcom/waiqin365/lightapp/view/hk;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->f:Lcom/waiqin365/lightapp/view/SearchView;

    new-instance v1, Lcom/waiqin365/lightapp/visit/hu;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/visit/hu;-><init>(Lcom/waiqin365/lightapp/visit/VisitSearchActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/SearchView;->setSearchListener(Lcom/waiqin365/lightapp/view/hm;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->f:Lcom/waiqin365/lightapp/view/SearchView;

    const v1, 0x7f080837

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/SearchView;->setHint(Ljava/lang/CharSequence;)V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/visit/VisitSearchActivity;Ljava/lang/String;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->a(Ljava/lang/String;)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_0
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_3

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/b/bn;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/b/bn;->a()Lcom/waiqin365/lightapp/kehu/b/am;

    move-result-object v2

    if-eqz v2, :cond_1

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/b/bn;->a()Lcom/waiqin365/lightapp/kehu/b/am;

    move-result-object v2

    iget-object v2, v2, Lcom/waiqin365/lightapp/kehu/b/am;->d:Ljava/lang/String;

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_1

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/b/bn;->a()Lcom/waiqin365/lightapp/kehu/b/am;

    move-result-object v2

    iget-object v2, v2, Lcom/waiqin365/lightapp/kehu/b/am;->d:Ljava/lang/String;

    invoke-virtual {v2, p1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_1

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :cond_1
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/b/bn;->a()Lcom/waiqin365/lightapp/kehu/b/am;

    move-result-object v2

    if-eqz v2, :cond_2

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/b/bn;->a()Lcom/waiqin365/lightapp/kehu/b/am;

    move-result-object v2

    iget-object v2, v2, Lcom/waiqin365/lightapp/kehu/b/am;->e:Ljava/lang/String;

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_2

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/b/bn;->a()Lcom/waiqin365/lightapp/kehu/b/am;

    move-result-object v2

    iget-object v2, v2, Lcom/waiqin365/lightapp/kehu/b/am;->e:Ljava/lang/String;

    invoke-virtual {v2, p1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_2

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :cond_2
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/b/bn;->a()Lcom/waiqin365/lightapp/kehu/b/am;

    move-result-object v2

    if-eqz v2, :cond_0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/b/bn;->a()Lcom/waiqin365/lightapp/kehu/b/am;

    move-result-object v2

    iget-object v2, v2, Lcom/waiqin365/lightapp/kehu/b/am;->c:Ljava/lang/String;

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/b/bn;->a()Lcom/waiqin365/lightapp/kehu/b/am;

    move-result-object v2

    iget-object v2, v2, Lcom/waiqin365/lightapp/kehu/b/am;->c:Ljava/lang/String;

    invoke-virtual {v2, p1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_0

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->d:Lcom/waiqin365/lightapp/visit/b/bo;

    invoke-virtual {v0, p1}, Lcom/waiqin365/lightapp/visit/b/bo;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->d:Lcom/waiqin365/lightapp/visit/b/bo;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/b/bo;->notifyDataSetChanged()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->b()V

    return-void
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/visit/VisitSearchActivity;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->a:Ljava/util/ArrayList;

    return-object v0
.end method

.method private b()V
    .locals 3

    const/16 v2, 0x8

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->c:Landroid/widget/ListView;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->g:Lcom/waiqin365/lightapp/view/NoNetView;

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->c:Landroid/widget/ListView;

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->g:Lcom/waiqin365/lightapp/view/NoNetView;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->g:Lcom/waiqin365/lightapp/view/NoNetView;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/NoNetView;->a()V

    goto :goto_0
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/visit/VisitSearchActivity;)Landroid/widget/ListView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->c:Landroid/widget/ListView;

    return-object v0
.end method

.method static synthetic d(Lcom/waiqin365/lightapp/visit/VisitSearchActivity;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->b:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic e(Lcom/waiqin365/lightapp/visit/VisitSearchActivity;)Lcom/waiqin365/lightapp/visit/b/bo;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->d:Lcom/waiqin365/lightapp/visit/b/bo;

    return-object v0
.end method

.method static synthetic f(Lcom/waiqin365/lightapp/visit/VisitSearchActivity;)Lcom/waiqin365/lightapp/view/NoNetView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->g:Lcom/waiqin365/lightapp/view/NoNetView;

    return-object v0
.end method


# virtual methods
.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 3

    const/4 v2, -0x1

    const/16 v0, 0x67

    if-ne p2, v0, :cond_0

    if-eqz p3, :cond_0

    const-string/jumbo v0, "index"

    invoke-virtual {p3, v0, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    if-le v0, v2, :cond_0

    const-string/jumbo v0, "index"

    invoke-virtual {p3, v0, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-ge v0, v1, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->a:Ljava/util/ArrayList;

    const-string/jumbo v1, "index"

    invoke-virtual {p3, v1, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/b/bn;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->b()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->d:Lcom/waiqin365/lightapp/visit/b/bo;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/b/bo;->notifyDataSetChanged()V

    :cond_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    iput-object p0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->e:Landroid/content/Context;

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "list"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Ljava/util/ArrayList;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->a:Ljava/util/ArrayList;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->a:Ljava/util/ArrayList;

    if-nez v0, :cond_0

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->a:Ljava/util/ArrayList;

    :cond_0
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->b:Ljava/util/ArrayList;

    const v0, 0x7f030290

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->setContentView(I)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->a()V

    return-void
.end method
